<template>
  <div class="home-banner">
    <RbtCarousel :sliders="sliders" />
  </div>
</template>

<script setup lang="ts">
import { findBanner } from '@/api/home'
import { BannerType } from '@/types/category'

const sliders = ref<BannerType[]>([])
findBanner().then(res => {
  sliders.value = res.data.result
})
</script>

<style scoped lang="scss">
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>
